package com.xjie.mall.common;

import lombok.Data;

/**
 * 用于指定响应状态码的枚举类
 */
public enum RespCode {
    SUCCESS(200,"操作成功"),
    ERROR(201,"操作失败"),
    SYSTEM_ERROR(202,"系统错误");

    private Integer code;
    private String message;

    RespCode(Integer code,String message)
    {
        this.code = code;
        this.message = message;
    }

    RespCode()
    {

    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
